{% extends "user_base.html" %}
{% block title %}
    购物车
{% endblock %}
{% block usercontext %}
    <style>
        .book_list{margin-left: 18px;}
        .book_list ul li{border-bottom: 1px solid #cccccc; width: 400px; line-height: 30px; height: 30px;}
        .guankan{ float: right; color: red; margin-right: 10px; font-weight: bold;}
    </style>
    <h2>购物车</h2>
       <div class="book_list">
        <ul>
            {% for  content in list %}
            <li><a href="{% url "index_course" content.id  %}">{{ content.course_name }}</a> <a href="{% url "buy_course" content.id  %}" class="guankan">立即购买</a> </li>
            {% endfor %}
        </ul>
       </div>
{% endblock %}